<?php
/**
 * 此文件存放错误码定义
 */


use Yolo\Errors\ExceptionRegistry;
use Yolo\Utils\Number;

$registry = ExceptionRegistry::inst();

$registry->createExceptionRegistry(
    'server.services.yolo.com',
    [
        'test' => [
            'index' => Number::createIncreaseCodeIndex(100000)
        ]
    ]
);

$registry->register((new \Yolo\Errors\ResponseError('test', 'test_error', 'This is a test error.')));
